/* 
 * Copyright 2013-2020 Modeliosoft
 * 
 * This file is part of Modelio.
 * 
 * Modelio is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Modelio is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Modelio.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.12.02 at 02:29:48 PM CET
//
package org.modelio.bpmnxml.model;

import com.modeliosoft.modelio.javadesigner.annotations.objid;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;

/**
 * <p>Java class for tTextAnnotation complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="tTextAnnotation">
 * &lt;complexContent>
 * &lt;extension base="{http://www.omg.org/spec/BPMN/20100524/MODEL}tArtifact">
 * &lt;sequence>
 * &lt;element ref="{http://www.omg.org/spec/BPMN/20100524/MODEL}text" minOccurs="0"/>
 * &lt;/sequence>
 * &lt;attribute name="textFormat" type="{http://www.w3.org/2001/XMLSchema}string" default="text/plain" />
 * &lt;anyAttribute processContents='lax' namespace='##other'/>
 * &lt;/extension>
 * &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@objid ("9d8fc416-632d-41ca-aa31-a62f1fc66626")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tTextAnnotation", propOrder = {
    "text"
})
public class TTextAnnotation extends TArtifact {
    @objid ("e941dd46-724a-4468-8d7a-574bc9713a7f")
    @XmlAttribute(name = "textFormat")
    protected String textFormat;

    @objid ("eb595ce6-b1b3-4530-8e03-595551679c7a")
    protected TText text;

    /**
     * Gets the value of the text property.
     * @return
     * possible object is
     * {@link TText }
     */
    @objid ("9dfebdf7-63ee-47fe-ba70-922fe1b2c4e4")
    public TText getText() {
        return this.text;
    }

    /**
     * Sets the value of the text property.
     * @param value allowed object is
     * {@link TText }
     */
    @objid ("52d0767d-e4e3-4a7b-9b86-5c2095be98ba")
    public void setText(TText value) {
        this.text = value;
    }

    /**
     * Gets the value of the textFormat property.
     * @return
     * possible object is
     * {@link String }
     */
    @objid ("a1115222-341c-4f4f-8a2f-1f7df0c12617")
    public String getTextFormat() {
        if (this.textFormat == null) {
            return "text/plain";
        } else {
            return this.textFormat;
        }
        
    }

    /**
     * Sets the value of the textFormat property.
     * @param value allowed object is
     * {@link String }
     */
    @objid ("fbd4349b-4b93-479b-9941-8f998447b7fc")
    public void setTextFormat(String value) {
        this.textFormat = value;
    }

}
